<template>
	<view>
	   <tiezi :userInfo="userInfo"></tiezi>
	</view>
</template>

<script>
import tiezi from '../mypost/component/tiezi.vue'
	import {
		baseURL,
		imgBaseUrl
	} from '@/utils/baseUrl.js'
	export default {
		components:{tiezi},
		data() {
			return {
				id:'',
				userInfo:{},
				img:'',
				idx:'',
			}
		},
		onShow(){
			console.log("this",this.$children[0])
			console.log(this)
			this.$children[0].pageNo = 1;
			this.$children[0].getLike()
			this.$children[0].getHotCount()
			this.$children[0].Datalist(this.id)
		},
		onLoad(value) {
			
			if(value.id != undefined )
			{
				console.log(value,'value');
				console.log(this,'this');
				 this.img = value.headPortrait
				 this.idx = value.id
				 this.id = value.id
				this.$children[0].Datalist(value.id)
				this.userInfo = {
					realname:value.nickname
				}
				
			}else
			{
				const userInfo = uni.getStorageSync('userInfo')
				this.id = userInfo.id
				this.userInfo = userInfo
				this.$children[0].Datalist(this.id)
			}
			
		},
		methods: {
		}
	}
</script>

<style>

</style>